Almost sure hypothesis testing